//
//  HDJSInjectAction.h
//  HdStore
//
//  Created by kopuCoder on 17/3/27.
//  Copyright © 2017年 zhenqiu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Common.h"

#define HaoDai_JSURL @""
#define POST_InjectJS_API @""
#define POST_CaptureJSInfo_API @""


/**JS 注入action*/
@interface HDJSInjectAction : NSObject

/**回调JS*/
@property (nonatomic,copy)void (^finishBlock)(NSString *injectJS);
@property (nonatomic,copy) NSString * jsString;

+ (instancetype)shareInstance;

/** 获取对应的host所对应的inject js文件*/
- (void)prepareToInjectForHost:( NSString *)host complition:(void(^)(NSString *injectJS))finishBlock;


/**上传抓取到的数据*/
- (void)postCaptureInfoWithHost:(NSString *)host capruteInfo:(NSData *)captureInfo;

+ (void)injectJSForWebView:(UIWebView *)webView;


+ (void)encyrtRequestHeader:(NSMutableURLRequest *)request;


- (void)getJS;

@end
